package com.liner.homework.first.person;

public class PersonTest {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("John", 32, "北京","外科医生");
        Teacher teacher = new Teacher("Bob", 42, "西安", 2000);
        Student student = new Student("Jack", 12, "上海", "二年级","001");

        doctor.sayHi();
        doctor.cut();
        teacher.sayHi();
        teacher.teach();
        teacher.eat();
        student.sayHi();
        student.study();
        student.sleep();


    }
}
